package com.tianji.learning.mapper;

import cn.hutool.core.date.DateTime;
import com.tianji.api.dto.IdAndNumDTO;
import com.tianji.learning.domain.po.LearningRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 学习记录表 Mapper 接口
 * </p>
 *
 * @author Ys
 * @since 2023-08-07
 */
public interface LearningRecordMapper extends BaseMapper<LearningRecord> {

    // 统计我的课程本周已学习小节
    List<IdAndNumDTO> countLesson(Long userId, DateTime beginOfWeek, DateTime endOfWeek);
}
